package com.example.carapi.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data // getters and setters
@AllArgsConstructor // 全参构造
@NoArgsConstructor // 无参构造
public class CarModel {
    Long id;
    String name;
    Long series_id;
    BigDecimal price;
    String description;
    String photo;
    String release_date;

    public CarModel(String name, Long series_id, BigDecimal price, String description, String photo, String release_date) {
        this.name = name;
        this.series_id = series_id;
        this.price = price;
        this.description = description;
        this.photo = photo;
        this.release_date = release_date;
    }
}
